//
//  GameMainView.h
//  linkingGame
//
//  Created by 李佳 on 15/4/5.
//  Copyright (c) 2015年 com.jinWu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ClassLevelData.h"
#import "ProgressView.h"
#import "ClickButton.h"

@protocol ButtonClickDelegate <NSObject>

- (BOOL)LLKBtnClick:(ClickButton*)clickBtn;

- (void)resetLLKMap;

- (BOOL)removeOnePairOfMap;

- (BOOL)addRandomPairToMap;

- (KGameMdoe)getGameMode;

- (NSUInteger)getGameLevel;

- (id<LevelData>)getLevelData;

- (void)goToBack;

- (void)nextGamePassBtnClicked;

- (void)reStartGameBtnClicked;

@end

@interface GameMainView : UIView

@property(nonatomic, strong)ProgressView* totalProgressView;
@property(nonatomic, strong)ProgressView* timesProgressView;
@property(nonatomic, strong)NSTimer* totalTimer;
@property(nonatomic, strong)NSTimer* timerTimer;
@property(nonatomic, strong)NSTimer* resetMapTimer; //重置地图时间
@property(nonatomic, strong)NSTimer* addRandomPairTimer;
@property(nonatomic, assign)id<ButtonClickDelegate>delegate;

- (instancetype)initWithLevelData:(id<LevelData>)levelData andFrame: (CGRect)rect;

- (void)resetLLKMapWithLevelData: (id<LevelData>)levelData;

@end
